﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace V5_EaspLibs.FrameWork.Model {
    public class ModelTemplate {
        /// <summary>
        /// 模板信息
        /// </summary>
        public class TemplateInfo {
            string m_Name;
            string m_Image;
            string m_Description;
            string m_Version;
            string m_Time;
            string m_Author;
            string m_TemplateDir;
            /// <summary>
            /// 名称
            /// </summary>
            public string Name {
                get { return m_Name; }
                set { m_Name = value; }
            }
            /// <summary>
            /// 图片
            /// </summary>
            public string Image {
                get { return m_Image; }
                set { m_Image = value; }
            }
            /// <summary>
            /// 备注
            /// </summary>
            public string Description {
                get { return m_Description; }
                set { m_Description = value; }
            }
            /// <summary>
            /// 版本
            /// </summary>
            public string Version {
                get { return m_Version; }
                set { m_Version = value; }
            }
            /// <summary>
            /// 时间
            /// </summary>
            public string Time {
                get { return m_Time; }
                set { m_Time = value; }
            }
            /// <summary>
            /// 作者
            /// </summary>
            public string Author {
                get { return m_Author; }
                set { m_Author = value; }
            }
            public string TemplateDir {
                get { return m_TemplateDir; }
                set { m_TemplateDir = value; }
            }
        }

        /// <summary>
        /// 模板Url配置项
        /// </summary>
        public class TemplateUrl {
            string m_title = string.Empty;
            string m_type = string.Empty;
            string m_templatefile = string.Empty;
            string m_lookfor = string.Empty;
            string m_sendfor_url = string.Empty;
            string m_sendfor_rewrite_url = string.Empty;
            string m_sendfor_html_url = string.Empty;
            string issystem = string.Empty;
            /// <summary>
            /// 节点名称
            /// </summary>
            public string Title {
                get { return m_title; }
                set { m_title = value; }
            }
            /// <summary>
            /// 模板类型
            /// </summary>
            public string Type {
                get { return m_type; }
                set { m_type = value; }
            }
            /// <summary>
            /// 模板文件
            /// </summary>
            public string TemplateFile {
                get { return m_templatefile; }
                set { m_templatefile = value; }
            }
            /// <summary>
            /// 查找标示
            /// </summary>
            public string LookFor {
                get { return m_lookfor; }
                set { m_lookfor = value; }
            }
            /// <summary>
            /// 发送Url
            /// </summary>
            public string SendFor_Url {
                get { return m_sendfor_url; }
                set { m_sendfor_url = value; }
            }
            /// <summary>
            /// 重新Url
            /// </summary>
            public string SendFor_Rewrite_Url {
                get { return m_sendfor_rewrite_url; }
                set { m_sendfor_rewrite_url = value; }
            }
            /// <summary>
            /// 静态url
            /// 
            /// </summary>
            public string SendFor_Html_Url {
                get { return m_sendfor_html_url; }
                set { m_sendfor_html_url = value; }
            }
            /// <summary>
            /// 是否系统
            /// </summary>
            public string IsSystem {
                get { return issystem; }
                set { issystem = value; }
            }
        }
    }
}
